import {post, get} from "@/server/request";


export function getName (data) {
    return post({
        url: 'getName',
        data
    })
}

export function login (data) {
    return post({
        // url: 'login',
        url: 'mLogin/login',
        data
    })
}

export function getEnterPrise(data) {
    return post({
        url: 'enterprise/getAll',
        data
    })
}

export function getAppList(data) {
    return post({
        url: 'app/list',
        data
    })
}



export function getFileList(data) {
    return post({
      url: "file/page",
      data,
    });
}

export function getAppId(data) {
  return post({
    url: "app/selappByPosition",
    data,
  });
}

// export const GET_FILE_URL = "file/getfile";
export const GET_FILE_URL = "file/downloadById";

export function getFile(params) {
    return get({
      url: GET_FILE_URL,
      params,
      responseType: "blob",
    });
}
// jcUser/jc/getLis
export function getJcUser(data) {
    return post({
      url: "jcUser/jc/getList",
      data,
    });
  }
